QuickTime uses the preview resource (defined by the pnotResource data type) with a resource ID of 0 to store the visual preview information. The structure of the preview resource is shown in Listing 3 .
If you parse this resource directly, please do extensive error checking in your code so as not to hinder future expansion of the data structure. In particular, if you encounter unknown version bits, exercise caution. Unexpected results may occur.
Listing 3 The preview resource
typedef struct pnotResource {
unsigned long modDate; /* modification date */
short version; /* version number of preview
resource */
OSType resType; /* type of resource used as preview
cache */
short resID; /* resource identification number
of resource used as preview
cache */
short numResItems;/* number of additional file
descriptions */
pnotResItem resItem[ ]; /* array of file descriptions */
} pnotResource;